<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<h4 class="modal-title" id="myModalLabel">选择CPN</h4>
</div>
<div class="modal-body">
	<div style="display:inline;">
		<label class="firstlabel">
			类型筛选：
			<span class="input-icon">
			<select class="form-control" id="cpn_class" name="cpn_class" onchange="loadcpn();">
				<option value="">全部</option>
				<foreach name="classList" item="vo" >
				<eq name="key" value="$Think.post.cpn_class">
				<option value="{$key}" selected>{$vo}</option>
				<else />
				<option value="{$key}">{$vo}</option>
				</eq>
				</foreach>
			</select>
			</span>
		</label>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<label class="firstlabel">
			CPN名称：
			<span class="input-icon">
				<input placeholder="CPN名称" class="form-control p22" id="keyword" name="keyword" autocomplete="off" value="{$Think.post.keyword}" type="text">
				<i class="ace-icon fa fa-search "></i>
			</span>
		</label>
		<input type="hidden" name="sum_id" value="{$Think.request.sum_id}">
		<input type="hidden" name="group_id" value="{$Think.request.group_id}">
		<button id="cpn_query" class="btn btn-primary m5" type="button">查询</button>
	</div>
	<div id="cpn_content" style="width:100%;height:350px;overflow-y:scroll;">
		<table class="table table-bordered table-condensed table-hover">
			<thead>
				<tr>
					<th colspan="5">CPN名称<span class="pull-right"><label><input type="checkbox" id="chkall"> 全选</label></span></th>
				</tr>
			</thead>
			<tbody id="cpn_list">
			<tr>
			<volist name="list" id="vo" mod="5">
				<td><label><input class="cpnchk" type="checkbox" name="id[]" value="{$vo.id}" /> {$vo.show_name}</label></td>
				<eq name="mod" value="4"></tr><tr></eq>
			</volist>
			</tr>
			</tbody>
		</table>
	</div>
</div>
<div class="modal-footer">
	<!--button type="button" class="btn btn-primary addcpnbtn">　选择　</button-->
	<button type="button" class="btn btn-default" data-dismiss="modal">　关闭　</button>
</div>
